﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Data.OleDb;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using DM_Article.Model;
using DM_Article.Bll;

public partial class index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        using (OleDbConnection cn = new OleDbConnection(ConfigurationManager.ConnectionStrings["ConnectionStringAccess"].ConnectionString))
        {
            cn.Open();
            //for line 1 col 1
            //this.repeater11.DataSource = articlebll.getArticleSmallclassNameJDXW(cn, 6);
            this.repeater11.DataSource = articlebll.getArticleByBigclassidDatasetTop(cn, bigclassbll.getBigClassIdbyName(cn, "焦点新闻"), 6);
            this.repeater11.DataBind();

            //for line 2 col 1
            this.repeater21.DataSource = articlebll.getArticleByBigclassidDatasetTop(cn, bigclassbll.getBigClassIdbyName(cn, "澳洲留学"), 6);
            this.repeater21.DataBind();

            //for line 2 col 2
            this.repeater22.DataSource = articlebll.getArticleByBigclassidDatasetTop(cn, bigclassbll.getBigClassIdbyName(cn, "移民服务"), 6);
            this.repeater22.DataBind();

            //for line 3 col 1
            this.repeater31.DataSource = articlebll.getArticleByBigclassidDatasetTop(cn, bigclassbll.getBigClassIdbyName(cn, "投资房产"), 6);
            this.repeater31.DataBind();

            //for line 3 col 2
            this.repeater32.DataSource = articlebll.getArticleByBigclassidDatasetTop(cn, bigclassbll.getBigClassIdbyName(cn, "澳洲旅游"), 6);
            this.repeater32.DataBind();

            //for line 4 col 1
            this.repeater41.DataSource = articlebll.getArticleByBigclassidDatasetTop(cn, bigclassbll.getBigClassIdbyName(cn, "酒庄"), 6);
            this.repeater41.DataBind();

            //for line 4 col 2
            this.repeater42.DataSource = articlebll.getArticleByBigclassidDatasetTop(cn, bigclassbll.getBigClassIdbyName(cn, "保健品"), 6);
            this.repeater42.DataBind();
        }
    }
}